<?php
namespace QinglongApp\Playday\Src\Model;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use DB;
class Playday extends Model
{
    protected static function getList()
    {
        $result = DB::table('ql_oa_playday_plan')
            ->get();
        return $result;
    }

    protected static function getDetail($playday_id)
    {
        $result['playday'] = DB::table('ql_oa_playday_plan')
            ->where('id', $playday_id)->first();
        $result['blacklist'] = DB::table('mr_playday_blacklist')
            ->where('playday_plan_id', $playday_id)->get();
        //var_dump($result);exit();
        return $result;
    }
}
